<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<TeamContainer>" %>
<%@ Import Namespace="TeamCommunitySolution.Models"%>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    CreateTeamMessage
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Create Team Message</h2>
    <h2>
        Create</h2>
    <%= Html.ValidationSummary("Create was unsuccessful. Please correct the errors and try again.") %>
    <% using (Html.BeginForm())
       {
           if (Model.TeamFor != null)
           { %>
    <%= Html.Hidden("TeamId", Model.TeamFor.Id) %>
    <%}%>
    <fieldset>
        <legend>Fields</legend>
        <p>
            <label for="title">
                Title:</label>
            <%= Html.TextBox("title") %>
            <%= Html.ValidationMessage("title", "*") %>
        </p>
        <p>
            <label for="messageContent">
                Message Content:</label>
            <%= Html.TextArea("messageContent", String.Empty, 6, 50, String.Empty)%>
            <%= Html.ValidationMessage("messageContent", "*") %>
        </p>
        <p>
            <input type="submit" value="CreateTeamMessage" />
        </p>
    </fieldset>
    <% } %>
</asp:Content>
